import request from "@/router/axios";

export const getList = (params) => {
  return request({
    url: "/api/admin/carOwner/pagination",
    method: "get",
    params: { ...params },
  });
};

export const getDetail = (id) => {
  return request({
    url: `/api/admin/carOwner/detail/${id}`,
    method: "get",
  });
};

export const updateItem = (row, id) => {
  return request({
    url: `/api/admin/carOwner/audit/${id}`,
    method: "post",
    data: row,
  });
};

// 删除车主
export const deleteCarOwner = (id) => {
  return request({
    url: `/api/admin/carOwner/delete/${id}`,
    method: "delete",
  });
};
